# x2 = 1
# for day in range(9):
#     x1 = (x2 + 1) * 2
#     x2 = x1
# print(x1)

# for i in range(ord("x"),ord("z") + 1 ):
#     for j in range(ord("x"),ord("z")+1):
#         if i != j:
#             for k in range(ord("x"),ord("z")+1):
#                 if(i != k ) and (j != k):
#                     if(i != ord("x")) and (k != ord("x")) and(k != ord("z")):
#                         print("order is a -- %s\t b-- %s\t c--%s" % (chr(i),chr(j),chr(k)))

# for i in range(4):
#     for j in range(2 - i + 1):
#         print(end=" ")
#     for k in range(2 * i + 1):
#         print('*',end="")
#     print("")
#
# for i in range(3):
#     for j in range(i + 1):
#         print(end=' ')
#     for k in range(4 - 2 * i + 1):
#         print('*',end="")
#     print("")

# a = 2
# b = 1
# sn = []
# for i in range(20):
#     c = a / b
#     t = a
#     a += b
#     b = t
#     sn.append(c)
# print(sn)
# print(sum(sn))

# n = 0
# s = 0
# t = 1
# for i in range(1, 21):
#     t *= i
#     s += t
# print(s)


# def fact(j):
#     sum = 0
#     if j == 0:
#         sum = 1
#     else:
#         sum = j * fact(j - 1)
#     return sum
#
#
# print(fact(5))

# def output(s, l):
#     if l == 0:
#         return
#     print(s[l - 1])
#     output(s, l - 1)
#
#
# s = input("输入一个字符串：")
# l = len(s)
# output(s, l)

# a = 10
# for i in range(1,5):
#     a = a + 2
# print(a)

# def age(n):
#     if n == 1:
#         c = 10
#     else:
#         c = age(n - 1) + 2
#     return c
#
#
# print(age(5))

# x = int(input("输入一个正整数："))
# a = x // 10000
# b = x % 10000 // 1000
# c = x % 1000 // 100
# d = x % 100 //10
# e = x % 10
#
# if a != 0:
#     print("5位数",e, d, c, b, a)
# elif b != 0:
#     print("4位数", e, d, c, b)
# elif c != 0:
#     print("3位数", e, d, c)
# elif d != 0:
#     print("2位数", e, d)
# else:
#     print("1位数", e)

# a = input("请输入一个数字：")
# x = str(a)
# flag = True
# for i in range(len(a)//2):
#     if x[i] != x[-i -1]:
#         flag = False
#         break
# if flag:
#     print("%s是一个回文数" % a)
# else:
#     print("%s不是一个回文数" % a)

# letter = input("please input:")
# if letter =="S":
#     print("please input second letter")
#     letter = input("please input:")
#     if letter == "a":
#         print("Saturday")
#     elif letter == "u":
#         print("Sunday")
#     else:
#         print("data error")
# elif letter == "F":
#     print("Friday")
# elif letter == "M":
#     print("Monday")
# elif letter == "T":
#     print("plaese input second letter")
#     letter = input("plaese input:")
#     if letter == "u":
#         print("Tuesday")
#     elif letter == "h":
#         print("data error")
# elif letter == "W":
#     print("Wednesday")
# else:
#     print("data error")

# a = ["one", "two", "three"]
# # # for i in a[::-1]:
# # #     print(i)

# L = [1,2,3,4,5]
# s1 = ",".join(str(n) for n in L)
# print(s1)

# def hello_world():
#     print("hello world")
#
#
# def three_hellos():
#     for i in range(3):
#         hello_world()
#
#
# if __name__ == "__main__":
#     three_hellos()

# class bcolors:
#     HEADER = '\033[95m'
#     OKBLUE = '\033[94m'
#     OKGREEN = '\033[92m'
#     WARNING = '\033[93m'
#     FAIL = '\033[91m'
#     ENDC = '\033[0m'
#     BOLD = '\033[1m'
#     UNDERLINE = '\033[4m'
# print(bcolors.ENDC + "警告的颜色字体?" + bcolors.WARNING)

# lower = int(input("输入区间最小值："))
# upper = int(input("输入区间最大值："))
#
# for num in range(lower,upper + 1):
#     if num > 1:
#         for i in range(2,num):
#             if num % i == 0:
#                 break
#         else:
#             print(num)

# if __name__ == "__main__":
# #     N = 4
# #     print("请输入10个数字：")
# #     l = []
# #     for i in range(N):
# #         l.append(int(input("请输入一个数字：")))
# #     print("")
# #     for i in range(N):
# #         print(l[i])
# #     print("")
# #     print(l)
# #     # l.sort()
# #     for i in range(N - 1):
# #         min = i
# #         for j in range(i + 1, N):
# #             if l[min] > l[j]:
# #                 min = j
# #                 l[i], l[min] = l[min], l[i]
# #     print("排列之后：")
# #     for i in range(N):
# #         print(l[i])

# if __name__ == "__main__":
#     a = []
#     sum = 0
#     for i in range(3):
#         a.append([])
#         for j in range(3):
#             a[i].append(float(input("输入一个数字：")))
#     for i in range(3):
#         sum += a[i][i]
#     print(a)
#     print(sum)

# if __name__ == "__main__":
#     a = [1,4,6,9,10,16,17,19,28,40,100,0]
#     print("原始列表：")
#     for i in range(len(a)):
#         print(a[i])
#     number = int(input("插入一个数字："))
#     end = a[-2]
#     if number > end:
#         a[-1] = number
#     else:
#         for i in range(len(a)):
#             if a[i] > number:
#                 temp1 = a[i]
#                 a[i] = number
#                 for j in range(i +1,len(a)):
#                     temp2 = a[j]
#                     a[j] = temp1
#                     temp1 = temp2
#                 break
#     print("排序后列表：")
#     for i in range(len(a)):
#         print(a[i])

# if __name__ == "__main__":
#     a = [9,6,5,4,1]
#     # N = len(a)
#     print(a)
#     # for i in range(len(a) // 2):
#     #     a[i],a[N-i-1] = a[N-i-1],a[i]
#     # print(a)
#     b = a[::-1]
#     print(b)

# class Solution:
#      def uniqueMorseRepresentations(self, words: List[str]) -> in
# dict={'a':".-",'b':"-...",'c':"-.-.",'d':"-..",'e':".",'f':"..-.",'g':"--.",'h':"....",'i':"..",'j':".---",'k':"-.-",'l':".-..",'m':"--",'n':"-.",'o':"---",'p':".--.",'q':"--.-",'r':".-.",'s':"...",'t':"-",'u':"..-",'v':"...-",'w':".--",'x':"-..-",'y':"-.--",'z':"--.."}
#         word_cag = []
#         for  i,j in enumerate(words):
#             emp=''
#             j=list(j)
#             for n,m in enumerate(j):
#                 emp += dict[m]
#             word_cag .append(emp)
#         return len(set(word_cag))


# words = ["gin","zen","gan","ead"]
# word_cag = []
# for i,j in enumerate(words):
#     emp = ""
#     print(i,j)
#     j = list(j)
#     for n,m in enumerate(j):
#         emp += dict[m]
#     word_cag.append(emp)
# print(word_cag)
# print(set(word_cag))
# print(len(set(word_cag)))

# import numpy as np
# A = [[1,2,3],[4,5,6],[7,8,9]]
# A = np.array(A)
# A = np.transpose(A)
# print(A)
# nums = [3,2,3,5]
# target = 6
# for i,j in enumerate(nums):
#     for n,m in enumerate(nums):
#         if i != n:
#             s = j + m
#             if s == target:
#                 print(i, n)

# hashmap = {}
# for ind, num in enumerate(nums):
#     hashmap[num] = ind
# print(hashmap)

# a = []
# b = []
# c = []
# aa = []
# Email = []
# for i in A:
#     a.append(i.partition("@")[0])
#     c.append(i.partition("@")[-1])
# print(a,c)
# for i in range(len(A)):
#     first_str = ""
#     for j in a[i]:
#         if j != ".":
#             first_str = first_str + j
#     aa.append(first_str)
# for j in aa:
#     b.append(j.partition("+")[0])
# print(b)
#
# for k in range(len(A)):
#     Email.append(b[k] +"@" + c[k])
# print(Email)
# print(len(set(Email)))


# emails = ["test.email+alex@leetcode.com","test.e.mail+bob.cathy@leetcode.com","testemail+david@lee.tcode.com"]
# seen = set()
# for email in emails:
#     local, domain = email.split('@')
#     if '+' in local:
#         local = local[:local.index('+')]
#     seen.add(local.replace('.','') + '@' + domain)
# print(len(seen))

# def twoSum(nums, target):
#     hashmap={}
#     for i,num in enumerate(nums):
#         if hashmap.get(target - num) is not None:
#             return [i,hashmap.get(target - num)]
#         hashmap[num] = i #这句不能放在if语句之前，解决list中有重复值或target-num=num的情况
#
#
# print(twoSum([1,2,4,5],7))

A = [[1,2,3],[4,5,6]]
m, n = len(A), len(A[0])
print(m,n)
r = [[0 for i in range(m)] for j in range(n)]
print(r)
